package com.atguigu.springcloud.service;


import com.atguigu.springcloud.domain.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
/**
 * @author zhaoye
 */
@FeignClient(value = "seata-account-service")
public interface AccountService{


    @PostMapping(value = "/account/decrease")
    /**
     * @Description
     * @Param [userId, money]
     * @return com.atguigu.springcloud.domain.CommonResult
    **/
    CommonResult decrease(@RequestParam("userId") Long userId, @RequestParam("money") BigDecimal money);
}